﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";    
}
@section RightSideBar {
     @Html.Action("Categories","Post")
     @Html.Action("Locations","Post")
    @* @Html.Action("Subscription", "Post")*@
}
    @if (ViewBag.Success != null)
    {       
    <div class="modal fade" id="myModalsuccess" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        </div>
      <div class="modal-body">
        <p>@ViewBag.Success</p>
      </div>
     </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->         
}
    
@section registerUserDetails
{
    @if (Session["UserId"] != null)
    {
         string name = Session["Username"].ToString();
        if(name==null || name=="")
        {
            @Html.Action("FullRegistration","Account")
        }
    }
}
<div style="float: left;">
    <div class="col-sm-8 col-lg-6">
        <legend class="NcTitleBar">NEEDED</legend><hr/>
        <div id="neededposts">
            @Html.Action("ViewNeededPosts", "Post")
        </div>
    </div>
    <div class="col-sm-8 col-lg-6">
        <legend class="NcTitleBar">AVAILABLE</legend><hr/>
        <div id="availableposts">
            @Html.Action("ViewAvailablePosts", "Post")
        </div>
    </div>
</div>